package chapter7.test.no1;

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");
        B b=new B();
        b.show();
    }
}
class A{
    public int getNum() {
        return num;
    }

    int num;
    A(){
        System.out.printf("!!!");
    }
    A(int i){
        this.num=i;
    }
}
class B extends A{
    //int num;
    B(){
        super(1);
    }
    void show(){
        System.out.println(this.num);
    }
}